using System.Collections;
using TMPro;
using UnityEngine;
using UnityEngine.SceneManagement;

public class UITest : MonoBehaviour
{
    // FightScene========================================
    public void OnFightSceneSave()
    {
        InitSystem.Instance.FightSceneSaveGame();
    }

    public void OnExit()
    {
        OnFightSceneSave();
        SceneManager.LoadScene("MapScene");
    }

    public void OnDamageTest()
    {
        HeroSystem.Instance.heroView.Damage(10);
    }

    public void OnHealTest()
    {
        HeroSystem.Instance.heroView.Damage(-10);
    }

    public void OnTurnEnd()
    {
        EnemyTurnGA enemyTurnGA = new();
        ActionSystem.Instance.Perform(enemyTurnGA);
        Debug.Log("[Info]:当前回合数" + Info.Instance.turnNumber);
    }

 
    //FireScene==========================================
    public void OnFireSceneSave()
    {
        FireSceneInitSystem.Instance.FireSceneSaveGame();
    }
    public void OnGoUpCardBag()
    {
        UpCardBagSystem.Instance.Setup();
    }


    public void OnFireSceneExit()
    {
        OnFireSceneSave();
        SceneManager.LoadScene("MapScene");
    }
}
